package com.cy.store.service.ex;

//业务层异常基类
//因为业务中所有的异常都发生在运行过程中，所以基类去继承运行异常
public class ServiceException extends RuntimeException{
//    抛无参异常
    public ServiceException() {
        super();
    }

//    抛有参异常，比如参数：“业务层产生未知异常”
    public ServiceException(String message) {
        super(message);
    }

//    抛出异常信息的同时，也抛出异常对象
    public ServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public ServiceException(Throwable cause) {
        super(cause);
    }

    protected ServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

}
